import Mock from 'mockjs';
// 获取 mock.Random 对象
//const Random = Mock.Random; mock时间测试
//Random.date() + ' ' + Random.time()
let leaguesJson = require('../static/js/json/leagues.json');
let categorysJson = require('../static/js/json/categorys.json');
let newsJson = require('../static/js/json/news.json');

Mock.setup({
  timeout: '200 - 400'
});
Mock.mock('/leagues', 'post', leaguesJson);
Mock.mock('/categorys', 'post', categorysJson);
Mock.mock('/news', 'post', newsJson);
